/* eslint-disable */
import request from "@/request";

/** getStoreConversationDetail POST /api/api/conversation/store/detail */
export async function getStoreConversationDetailUsingPost(
  body: API.ConversationRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseConversationVO_>(
    "/api/api/conversation/store/detail",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** listStoreConversations POST /api/api/conversation/store/list */
export async function listStoreConversationsUsingPost(options?: {
  [key: string]: any;
}) {
  return request<API.BaseResponseListConversationVO_>(
    "/api/api/conversation/store/list",
    {
      method: "POST",
      ...(options || {}),
    }
  );
}

/** sendStoreMessage POST /api/api/conversation/store/send */
export async function sendStoreMessageUsingPost(
  body: API.SendMessageRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseMessageVO_>(
    "/api/api/conversation/store/send",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** getUserConversationDetail POST /api/api/conversation/user/detail */
export async function getUserConversationDetailUsingPost(
  body: API.ConversationRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseConversationVO_>(
    "/api/api/conversation/user/detail",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** listUserConversations POST /api/api/conversation/user/list */
export async function listUserConversationsUsingPost(options?: {
  [key: string]: any;
}) {
  return request<API.BaseResponseListConversationVO_>(
    "/api/api/conversation/user/list",
    {
      method: "POST",
      ...(options || {}),
    }
  );
}

/** sendUserMessage POST /api/api/conversation/user/send */
export async function sendUserMessageUsingPost(
  body: API.SendMessageRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseMessageVO_>(
    "/api/api/conversation/user/send",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** startUserConversation POST /api/api/conversation/user/start */
export async function startUserConversationUsingPost(
  body: API.CreateConversationRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseConversationVO_>(
    "/api/api/conversation/user/start",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
